SlideShow.java -- Source file that subclasses an existing QTDrawable object to create a simple SlideShow presentation from a sequence of Images. It defines the addedTo method to register its interest in Mouse events - the mouse down is used to go to the next image, when the alt/option key is down the show presents the previous image in its sequence.
ViewerDemo.java -- The source file containing the Main Class.
Possible extensions:
The SlideShow could be added to the Compositor for a smooth redraw - it ensures that when the next/previous image is set the user won't see a flash of the redrawing of the changed image.
An alternative to using the Compositor would be to have an alternate version of this SlideShow which applied effects when transitioning to another image.
A QTSession.open will perform a gestalt check to ensure that QuickTime is present and is initialized. This is a required call before any QuickTime Java classes can be used.
When the user closes the window the program will quit, first calling QTSession.close to terminate QuickTime. It is necessary for programs to call QTSession.close if they have previously called QTSession.open in order to shut down QuickTime properly.